#ifndef TOY_H
#define TOY_H

#include <string>
#include <iostream>

class Toy {
private:
    int id;                 // Toy ID
    std::string name;       // Toy name
    std::string type;       // Toy type
    double price;           // Rental price per day
    int total;              // Total copies
    int available;          // Available copies

public:
    Toy(int id, const std::string& name, const std::string& type, double price, int total, int available);

    int getId() const;
    std::string getName() const;
    std::string getType() const;
    double getPrice() const;
    int getTotal() const;
    int getAvailable() const;

    void setName(const std::string& name);
    void setType(const std::string& type);
    void setPrice(double price);
    void setTotal(int total);
    void setAvailable(int available);

    void displayInfo() const;
    std::string serialize() const;
};

#endif // TOY_H    